import request from '@/utils/request'
export function unit(query) {
  return request({
    url: '/basicStoShelf/unit',
    method: 'get',
    params: query
  })
}
//货位库区下拉查询
export function findStoAreaAll(query) {
  return request({
    url: '/basic/stoArea/findStoAreaAll',
    method: 'get',
    params: query
  })
}
//仓库查询
export function findBasicStoStockData(query) {
  return request({
    url: '/basic/stoStock/findBasicStoStockData',
    method: 'get',
    params: query
  })
}
//库区查询
export function findStoAreaList(query) {
  return request({
    url: '/basic/stoArea/findStoAreaList',
    method: 'get',
    params: query
  })
}
//库区删除接口
export function stoArea(query) {
  return request({
    url: '/ncc/basic/stoArea/' + query,
    method: 'delete',
  })
}
//库区修改
export function stoAreaEdit(query) {
  return request({
    url: '/ncc/basic/stoArea',
    method: 'put',
    data: query
  })
}
//库区启用
export function updateStoAreaState(query) {
  return request({
    url: '/basic/stoArea/updateStoAreaState',
    method: 'put',
    params: query
  })
}
//库区按照仓库筛选货区
export function findStoAreaAllOne(query) {
  return request({
    url: '/basic/stoArea/findStoAreaAll',
    method: 'get',
    params: query
  })
}
//仓库管理
export function allList(query) {
  return request({
    url: '/warehouse/allList',
    method: 'get',
    params: query
  })
}
//仓库选择图标接口
export function findAllBasicPicInfoList(query) {
  return request({
    url: 'basic/picInfo/findAllBasicPicInfoList',
    method: 'get',
    params: query
  })
}
//仓库管理新增仓库
export function wareAdd(query) {
  return request({
    url: '/warehouse/add',
    method: 'post',
    data: query
  })
}
//仓库管理修改仓库
export function update(query) {
  return request({
    url: '/warehouse/update',
    method: 'put',
    data: query
  })
}
//仓库管理删除
export function deleteWarehouse(query) {
  return request({
    url: '/warehouse/' + query,
    method: 'delete',
    pararm: query
  })
}
//仓库管理更新状态
export function updateEnableStatus(query) {
  return request({
    url: '/warehouse/updateEnableStatus',
    method: 'put',
    params: query
  })
}
//仓库管理下拉框
export function getAllWarehouseList(query) {
  return request({
    url: '/warehouse/getAllWarehouseList',
    method: 'get',
    params: query
  })
}
//剂型管理的获取货区
export function findAllBasicStoStockData(query) {
  return request({
    url: '/basic/stoStock/findAllBasicStoStockData',
    method: 'get',
    params: query
  })
}
//仓库概况
export function queryStoStock(query) {
  return request({
    url: '/basic/stoStock/queryAllStoStock',
    method: 'get',
    params: query
  })
}
//仓库概况货区
export function queryAreaByStoId(query) {
  return request({
    url: '/yxl/billReport/queryAreaByStoId',
    method: 'get',
    params: query
  })
}
//仓库概况货位
export function queryUnitByAreaId(query) {
  return request({
    url: '/yxl/billReport/queryUnitByAreaId',
    method: 'get',
    params: query
  })
}
//货位放置东西详情
export function querySkuByUnitCode(query) {
  return request({
    url: '/yxl/billReport/querySkuByUnitCode',
    method: 'get',
    params: query
  })
}
//库区类型列表
export function getAllAreaRules(query) {
  return request({
    url: '/ncc/basic/stoArea/getAllAreaRules',
    method: 'get',
    params: query
  })
}
//库区类型保存
export function addAreaRules(query) {
  return request({
    url: '/ncc/basic/stoArea/addAreaRules',
    method: 'post',
    data: query
  })
}


